package com.gxa.meiye.admin.shop.service.impl;

import com.gxa.meiye.admin.shop.mapper.FinanceMapper;
import com.gxa.meiye.admin.shop.service.FinanceService;
import com.gxa.meiye.core.pojo.shopManagement.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author cc
 * @PackageName meiye
 * @Package com.gxa.meiye.admin.shop.service.impl
 * @Date 2022/7/25 8:26
 * @Version 1.0
 */
@Service
public class FinanceServiceImpl implements FinanceService {
    @Autowired
    private FinanceMapper financeMapper;

    @Override
    public List<Order> getAllFinance() {
        return financeMapper.selectAllFinance();
    }

    @Override
    public Integer getAllFinanceCount() {
        return financeMapper.selectAllFinanceCount();
    }

    @Override
    public Integer conditionAll(Order order) {
        return financeMapper.countConditionAll(order);
    }

    @Override
    public List<Order> getByCondition(Integer pageNum, Integer pageSize, String endTime, String orderNumber, String serialNumber, String startTime, Integer status) {
        return financeMapper.queryByCondition(pageNum, pageSize, endTime, orderNumber, serialNumber, startTime, status);
    }
}
